<?php
$id = $epg['id'];
$data = file_get_contents('https://mod.cht.com.tw/channelrw/epginfob.php?id='.$id);
$data = preg_match('/'.date('Y-m-d').'(.*?)<\/div><\/div><\//',$data,$info);
preg_match_all('/<div class=\'time\'> (.*?)</',$info[0],$time);
preg_match_all('/<div class=\'channelTitle\'> (.*?) /',$info[0],$name);
for($i = 0; $i <= count($time[1]) - 1; $i++) {
    echo '<li><span>'.$time[1][$i].'&nbsp&nbsp&nbsp&nbsp'.$name[1][$i].'</span></li>';
};